package cupiPhoneInterfaz;

import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.border.TitledBorder;
import java.awt.Font;
import java.awt.Color;
import javax.swing.JList;
import java.awt.Rectangle;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

public class ListaLlamadas extends JDialog
{

    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    private JList jListaLlamadas = null;
    private JButton jButtonElimLlamaRea = null;
    private JLabel jLabelEliminarLlaRea = null;
    private JButton jButtonElimLlaResi = null;
    private JLabel jLabelElimLlaResi = null;
    private JButton jButtonDeleteAll = null;
    private JLabel jLabelDeleteAll = null;
    private JButton jButtonEliminarLLamadaPorNum = null;
    private JLabel jLabelEliminLlamadNumer = null;
    private JButton jButtonOk = null;
    private CupiPhoneInterfaz principal;
    /**
     * @param owner
     */
    public ListaLlamadas( CupiPhoneInterfaz xx )
    {
        super( );
        principal = xx;
        initialize( );
    }
    /**
     * This method initializes this
     * 
     * @return void
     */
    private void initialize( )
    {
        this.setSize(288, 424);
        this.setTitle("Lista de llamadas");
        this.setContentPane( getJContentPane( ) );
    }
    /**
     * This method initializes jContentPane
     * 
     * @return javax.swing.JPanel
     */
    private JPanel getJContentPane( )
    {
        if( jContentPane == null )
        {
            jLabelEliminLlamadNumer = new JLabel();
            jLabelEliminLlamadNumer.setBounds(new Rectangle(41, 337, 175, 16));
            jLabelEliminLlamadNumer.setText("Eliminar llamada por numero");
            jLabelDeleteAll = new JLabel();
            jLabelDeleteAll.setBounds(new Rectangle(41, 313, 145, 16));
            jLabelDeleteAll.setText("Eliminar todo el registro");
            jLabelElimLlaResi = new JLabel();
            jLabelElimLlaResi.setBounds(new Rectangle(41, 289, 171, 16));
            jLabelElimLlaResi.setText("Eliminar llamadas Recibidas");
            jLabelEliminarLlaRea = new JLabel();
            jLabelEliminarLlaRea.setBounds(new Rectangle(41, 265, 171, 16));
            jLabelEliminarLlaRea.setText("Eliminar llamadas realizadas");
            jContentPane = new JPanel( );
            jContentPane.setLayout(null);
            jContentPane.setBorder(BorderFactory.createTitledBorder(null, "Llamadas", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
            jContentPane.add(getJListaLlamadas(), null);
            jContentPane.add(getJButtonElimLlamaRea(), null);
            jContentPane.add(jLabelEliminarLlaRea, null);
            jContentPane.add(getJButtonElimLlaResi(), null);
            jContentPane.add(jLabelElimLlaResi, null);
            jContentPane.add(getJButtonDeleteAll(), null);
            jContentPane.add(jLabelDeleteAll, null);
            jContentPane.add(getJButtonEliminarLLamadaPorNum(), null);
            jContentPane.add(jLabelEliminLlamadNumer, null);
            jContentPane.add(getJButtonOk(), null);
        }
        return jContentPane;
    }
    /**
     * This method initializes jListaLlamadas	
     * 	
     * @return javax.swing.JList	
     */
    private JList getJListaLlamadas( )
    {
        if( jListaLlamadas == null )
        {
            jListaLlamadas = new JList( );
            jListaLlamadas.setBounds(new Rectangle(10, 19, 253, 234));
        }
        return jListaLlamadas;
    }
    /**
     * This method initializes jButtonElimLlamaRea	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonElimLlamaRea( )
    {
        if( jButtonElimLlamaRea == null )
        {
            jButtonElimLlamaRea = new JButton( );
            jButtonElimLlamaRea.setBounds(new Rectangle(17, 265, 15, 15));
            jButtonElimLlamaRea.addActionListener( new java.awt.event.ActionListener( )
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                    
                }
            } );
        }
        return jButtonElimLlamaRea;
    }
    /**
     * This method initializes jButtonElimLlaResi	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonElimLlaResi( )
    {
        if( jButtonElimLlaResi == null )
        {
            jButtonElimLlaResi = new JButton( );
            jButtonElimLlaResi.setBounds(new Rectangle(17, 289, 15, 15));
        }
        return jButtonElimLlaResi;
    }
    /**
     * This method initializes jButtonDeleteAll	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonDeleteAll( )
    {
        if( jButtonDeleteAll == null )
        {
            jButtonDeleteAll = new JButton( );
            jButtonDeleteAll.setBounds(new Rectangle(17, 313, 15, 15));
        }
        return jButtonDeleteAll;
    }
    /**
     * This method initializes jButtonEliminarLLamadaPorNum	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonEliminarLLamadaPorNum( )
    {
        if( jButtonEliminarLLamadaPorNum == null )
        {
            jButtonEliminarLLamadaPorNum = new JButton( );
            jButtonEliminarLLamadaPorNum.setBounds(new Rectangle(17, 337, 15, 15));
            jButtonEliminarLLamadaPorNum.addActionListener( new java.awt.event.ActionListener( )
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                    JOptionPane.showInputDialog( null, "Numero que desea eliminar");
                }
            } );
        }
        return jButtonEliminarLLamadaPorNum;
    }
    /**
     * This method initializes jButtonOk	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonOk( )
    {
        if( jButtonOk == null )
        {
            jButtonOk = new JButton( );
            jButtonOk.setBounds(new Rectangle(17, 361, 79, 17));
            jButtonOk.setText("Aceptar");
            jButtonOk.addActionListener( new java.awt.event.ActionListener( )
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                    dispose( );
                }
            } );
        }
        return jButtonOk;
    }

}  //  @jve:decl-index=0:visual-constraint="17,15"
